package com.disgnpattern.learn.chapter8.factorymethod;

import com.disgnpattern.learn.chapter8.Leifeng;
import com.disgnpattern.learn.chapter8.simple.Undergraduate;
import com.disgnpattern.learn.chapter8.simple.Volunteer;

/**
 * @author dxy
 * @version 1.0
 * @date 2021/10/22 17:00
 * @decripton 志愿者工厂
 * @mail victorydeng@163.com
 */
public class VolunteerFactory implements IFactory{
    @Override
    public Leifeng createLeifeng() {
        return new Volunteer();
    }
}
